<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>my_skynet: Service Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">my_skynet
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classService.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classService-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Service Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7005753e199e8b0683dce63e26d10d93"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7005753e199e8b0683dce63e26d10d93"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnInit</b> ()</td></tr>
<tr class="separator:a7005753e199e8b0683dce63e26d10d93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6a7b145146f9328bb058568a869d4f7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6a7b145146f9328bb058568a869d4f7"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnMsg</b> (std::shared_ptr&lt; <a class="el" href="classBaseMsg.html">BaseMsg</a> &gt; msg)</td></tr>
<tr class="separator:ab6a7b145146f9328bb058568a869d4f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e8edec4900b6c63f985e9cc333374b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e8edec4900b6c63f985e9cc333374b8"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnExit</b> ()</td></tr>
<tr class="separator:a3e8edec4900b6c63f985e9cc333374b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1df6167e0ce5c114bd53fa057b2661df"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1df6167e0ce5c114bd53fa057b2661df"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>PushMsg</b> (std::shared_ptr&lt; <a class="el" href="classBaseMsg.html">BaseMsg</a> &gt; msg)</td></tr>
<tr class="separator:a1df6167e0ce5c114bd53fa057b2661df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a210cc8f29721f14f37c260d49d4e1bdd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a210cc8f29721f14f37c260d49d4e1bdd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>ProcessMsg</b> ()</td></tr>
<tr class="separator:a210cc8f29721f14f37c260d49d4e1bdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a443f7ddbda89fc40ef084f77086ad645"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a443f7ddbda89fc40ef084f77086ad645"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ProcessMsgs</b> (int max)</td></tr>
<tr class="separator:a443f7ddbda89fc40ef084f77086ad645"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7081b7da269aa39ce91bd179791aa868"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7081b7da269aa39ce91bd179791aa868"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>OnServiceMsg</b> (std::shared_ptr&lt; <a class="el" href="classServiceMsg.html">ServiceMsg</a> &gt; msg)</td></tr>
<tr class="separator:a7081b7da269aa39ce91bd179791aa868"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8d74b95de3d887f0f6a1a6cadcf154e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac8d74b95de3d887f0f6a1a6cadcf154e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>OnRWMsg</b> (std::shared_ptr&lt; <a class="el" href="classSocketRWMsg.html">SocketRWMsg</a> &gt; msg)</td></tr>
<tr class="separator:ac8d74b95de3d887f0f6a1a6cadcf154e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9f91984289bb79218e1e3ed81c8a59e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9f91984289bb79218e1e3ed81c8a59e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>OnLogMsg</b> (std::shared_ptr&lt; <a class="el" href="classLogMsg.html">LogMsg</a> &gt; msg)</td></tr>
<tr class="separator:af9f91984289bb79218e1e3ed81c8a59e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05b1bf5e9a0c76de67720f3033bfd8dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05b1bf5e9a0c76de67720f3033bfd8dc"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnAcceptMsg</b> (std::shared_ptr&lt; <a class="el" href="classSocketAcceptMsg.html">SocketAcceptMsg</a> &gt; msg)</td></tr>
<tr class="separator:a05b1bf5e9a0c76de67720f3033bfd8dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab05f0e333bb71afece98fac0c36d7c28"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab05f0e333bb71afece98fac0c36d7c28"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnSocketData</b> (int fd, const char *buff, int len)</td></tr>
<tr class="separator:ab05f0e333bb71afece98fac0c36d7c28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f5c5e470e1c6e3255786aabfe4765cb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f5c5e470e1c6e3255786aabfe4765cb"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnSocketWritable</b> (int fd)</td></tr>
<tr class="separator:a7f5c5e470e1c6e3255786aabfe4765cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5478aec70bacd596ad165bc1a1812455"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5478aec70bacd596ad165bc1a1812455"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnSocketClose</b> (int fd)</td></tr>
<tr class="separator:a5478aec70bacd596ad165bc1a1812455"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12555591b69a328f6e9f7834c89f74c1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a12555591b69a328f6e9f7834c89f74c1"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>OnPacketRead</b> (int fd, PacketBase &amp;packet)</td></tr>
<tr class="separator:a12555591b69a328f6e9f7834c89f74c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade21fd39d3eb66db39a4a8de6b107655"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade21fd39d3eb66db39a4a8de6b107655"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetID</b> (uint32_t id)</td></tr>
<tr class="separator:ade21fd39d3eb66db39a4a8de6b107655"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ee1d4f039da8881438d5fb5ed846c23"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ee1d4f039da8881438d5fb5ed846c23"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>GetID</b> ()</td></tr>
<tr class="separator:a9ee1d4f039da8881438d5fb5ed846c23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a091e9cf88fbed384bf1fa85915c05d2a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a091e9cf88fbed384bf1fa85915c05d2a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetType</b> (std::shared_ptr&lt; std::string &gt; type)</td></tr>
<tr class="separator:a091e9cf88fbed384bf1fa85915c05d2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af14725c5a0cda5aa42b1224472694e0e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af14725c5a0cda5aa42b1224472694e0e"></a>
std::shared_ptr&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GetType</b> ()</td></tr>
<tr class="separator:af14725c5a0cda5aa42b1224472694e0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b7bf87dc0f95946a2aa05d39a4cb4e5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b7bf87dc0f95946a2aa05d39a4cb4e5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetExiting</b> (bool exiting)</td></tr>
<tr class="separator:a9b7bf87dc0f95946a2aa05d39a4cb4e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1439a4d94f3f023525d9a3c790e8eb58"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1439a4d94f3f023525d9a3c790e8eb58"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsExiting</b> ()</td></tr>
<tr class="separator:a1439a4d94f3f023525d9a3c790e8eb58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56628b075473394fde2434c1b9b2f07e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a56628b075473394fde2434c1b9b2f07e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>SetInGlobal</b> (bool in_global)</td></tr>
<tr class="separator:a56628b075473394fde2434c1b9b2f07e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedd2ef71753d78278748d07630600c83"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aedd2ef71753d78278748d07630600c83"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsInGlobal</b> ()</td></tr>
<tr class="separator:aedd2ef71753d78278748d07630600c83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aae0dc3064992e8e56bf014ecd6213f79"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae0dc3064992e8e56bf014ecd6213f79"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>id_</b></td></tr>
<tr class="separator:aae0dc3064992e8e56bf014ecd6213f79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56baa1dc9cede0b4ca00f0b8752f722a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a56baa1dc9cede0b4ca00f0b8752f722a"></a>
std::shared_ptr&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>type_</b></td></tr>
<tr class="separator:a56baa1dc9cede0b4ca00f0b8752f722a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf9fc78ebc092cb2179d8cf893401e3e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf9fc78ebc092cb2179d8cf893401e3e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>exiting_</b> = false</td></tr>
<tr class="separator:adf9fc78ebc092cb2179d8cf893401e3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f6e9003bab595c9987917793881fa2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61f6e9003bab595c9987917793881fa2"></a>
std::queue&lt; std::shared_ptr<br class="typebreak"/>
&lt; <a class="el" href="classBaseMsg.html">BaseMsg</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>msg_queue_</b></td></tr>
<tr class="separator:a61f6e9003bab595c9987917793881fa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a752b5f362a1e185ee8c69d9aa21e3737"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a752b5f362a1e185ee8c69d9aa21e3737"></a>
pthread_spinlock_t&#160;</td><td class="memItemRight" valign="bottom"><b>queue_lock_</b></td></tr>
<tr class="separator:a752b5f362a1e185ee8c69d9aa21e3737"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf3d0a494ea0e4b153a5d3c43a1f232d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf3d0a494ea0e4b153a5d3c43a1f232d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>in_global_</b></td></tr>
<tr class="separator:aaf3d0a494ea0e4b153a5d3c43a1f232d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe5f2bc2a6d3d60abf9c03dbad86c7cc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe5f2bc2a6d3d60abf9c03dbad86c7cc"></a>
pthread_spinlock_t&#160;</td><td class="memItemRight" valign="bottom"><b>in_global_lock_</b></td></tr>
<tr class="separator:afe5f2bc2a6d3d60abf9c03dbad86c7cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50221be32ee45a2874373971a2bc0842"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50221be32ee45a2874373971a2bc0842"></a>
lua_State *&#160;</td><td class="memItemRight" valign="bottom"><b>lua_state_</b></td></tr>
<tr class="separator:a50221be32ee45a2874373971a2bc0842"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/why/workspace/my_skynet/include/<a class="el" href="service_8h_source.html">service.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classService.html">Service</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
